package ui.adapter;

import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.fy.fyzf.R;
import com.fy.fyzf.bean.IntegralStoreBean;
import com.fy.fyzf.glideUtils.GlideUtils;

import java.util.List;

public class IntegralAdapter extends BaseQuickAdapter<IntegralStoreBean.ListBean, BaseViewHolder> {

    public IntegralAdapter() {
        super(R.layout.item_intergral_store);
    }

    @Override
    protected void convert(BaseViewHolder helper, IntegralStoreBean.ListBean item) {
        GlideUtils.loadImage(item.getMallUrl(),(ImageView)helper.getView(R.id.iv_logo));

        helper.setText(R.id.tv_name, item.getMallTitle())
                .setText(R.id.tv_jifen, item.getMallIntegral() + "积分");
    }
}
